package com.xxd.gulimail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxd.common.utils.PageUtils;
import com.xxd.gulimail.product.entity.AttrEntity;
import com.xxd.gulimail.product.vo.AttrGroupRelationVo;
import com.xxd.gulimail.product.vo.AttrVo;
import com.xxd.gulimail.product.vo.AttrespVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author xxd
 * @email 2132862687@qq.com
 * @date 2022-09-26 10:32:57
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils findPage(Map<String, Object> params, Long catelogId, String attrType);

    void saveAttr(AttrVo attr);

    AttrespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrEntity> getRelationAttr(long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoAttrRelationAttr(Map<String, Object> params, long attrgroupId);

    void saveRelation(AttrGroupRelationVo[] vos);
}

